package com.my.study;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author xuxueli 2018-10-31 19:05:43
 */
@Slf4j
@SpringBootApplication()
// com.my.study.entity.enums 和 com.my.study.entity 下的类都不会被扫描
@ComponentScan(basePackages = {"com.my.study"},
        excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.my.study.entity\\..*"),
                @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.my.study.enums\\..*")})
public class JobApplication {

    public static void main(String[] args) {
        SpringApplication.run(JobApplication.class, args);
    }

}
